<template id="ongoing">
	<div>
	</div>
</template>

<script>
  import { isPC } from '@/plugins/util'
	export default{
		name:'ongoing',
		data(){
			return{
				isGoing:""
			}
		},
		created() {
			setTimeout(()=>{
				this.$store.state.cptts.forEach(e=>{
					if (e.isGoing == true)
						{
							this.isGoing = e
							this.open(e.name)
						}
				})
			},500)//等待store加载完毕
			
		},
		methods: {
			open(e) {
				this.$notify({
					title: e+'正在进行',
					dangerouslyUseHTMLString: true,
					message: `<a
							href="/${(isPC()?'PC':'mobile')}/watch"
							tag="button"
							class="el-button el-button--default"
							>
							点击观看
							</a>`,
					duration: 3000,
					offset: 100,
				});
			}
		},
	}
</script>

<style>
.el-notification{
	width: 60% !important;
}
</style>
